package com.yzs.core.http

import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.QueryMap
import retrofit2.http.Url

/**
 *    author : yzs
 *    date   : 2022/1/1211:50
 *    desc   : get post
 */
interface ApiService {

    @GET
    suspend fun get(@Url url: String?): Any?

    @GET
    suspend fun get(@Url url: String, @QueryMap param: Map<String, String>): ApiResponse

    @POST
    suspend fun post(@Url url: String, @QueryMap param: Map<String, String>): ApiResponse
}